// 根据数据表名，查找表对象
function getSheetByName(name) {
    let sheets = Application.Sheet.GetSheets();
    let matchedSheet;
    for (let i = 0; i < sheets.length; i++) {
        if (sheets[i].name === name) {
            matchedSheet = sheets[i];
            break;
        }
    }
    if (!matchedSheet) console.warn('The specified table not existed!')
    return matchedSheet;
}